package com.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.entity.po.Admin;
import com.project.entity.po.Member;
import com.project.entity.po.User;
import com.project.entity.qo.CommentQo;
import com.project.entity.qo.MemberQo;
import com.project.entity.qo.UserQo;
import com.project.result.ResponseResult;

import java.util.List;

/**
 * @ProjectName:
 * @Package:
 * @ClassName:
 * @Author: ZhaoLongShi
 * @CreateDate:
 */
@SuppressWarnings("all")
public interface AdminService {

    /**
     * 检查用户名是否存在
     *
     * @param username
     * @return
     */
    ResponseResult<Admin> selectAdminByName(String username);

    /**
     * 获取所有用户信息
     *
     * @return
     */
    ResponseResult<Page<User>> selectAllUser(int current);

    /**
     * 根据用户ID删除用户(可批量)
     *
     * @param idList
     * @return
     */
    ResponseResult deleteUserByIds(List<Long> idList);

    /**
     * 添加用户
     *
     * @param userQo
     * @return
     */
    ResponseResult addUser(UserQo userQo);

    /**
     * 根据用户ID更新用户信息
     * @param userQo
     * @return
     */
    ResponseResult updateUserById(UserQo userQo);

}
